FROM python:3
LABEL authors="muyitou"
# 配置工作目录
WORKDIR /app

# 复制当前目录下的所有文件
COPY . .

RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt

# 生成迁移文件
RUN python3 manage.py migrate



ENTRYPOINT ["python3", "manage.py", "runserver", "0.0.0.0:8000"]